package com.ny.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;

/**
 * 消费记录信息
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
public class MemberConsumptionDTO {

    /**
     * 会员ID:会员ID
     */
    @NotNull(groups = { CreateGroup.class }, message = "会员ID不能为空")
    @ApiModelProperty(value = "会员ID:会员ID")
    private Integer memberId;

    /**
     * 消费金额:消费金额
     */
    @NotNull(groups = { CreateGroup.class }, message = "消费金额不能为空")
    @PositiveOrZero(message = "消费金额不能为负数")
    @ApiModelProperty(value = "消费金额:消费金额")
    private BigDecimal amount;

    /**
     * 消费日期:消费日期
     */
    @NotNull(groups = { CreateGroup.class }, message = "消费日期不能为空")
    @ApiModelProperty(value = "消费日期:消费日期")
    private Date consumptionDate;

    /**
     * 消费描述:消费描述
     */
    @Size(max = 255, message = "消费描述长度不能超过255")
    @ApiModelProperty(value = "消费描述:消费描述")
    private String description;
}
